package ai.plantdata.Structural.mode.Facade.facade;

import ai.plantdata.Structural.mode.Facade.interfaces.Shape;
import ai.plantdata.Structural.mode.Facade.interfaces.impl.Circle;
import ai.plantdata.Structural.mode.Facade.interfaces.impl.Rectangle;
import ai.plantdata.Structural.mode.Facade.interfaces.impl.Square;

/**
 * @Author: WangHui
 * @Date: 2020/12/21 15:27
 * @Description:
 */
public class ShapeMarker {
    private Shape circle;
    private Shape rectangle;
    private Shape square;

    public ShapeMarker() {
        this.circle =new Circle();
        this.rectangle = new Rectangle();
        this.square = new Square();
    }

    public void drawCircle(){
        circle.draw();
    }

    public void drawRectangle(){
        rectangle.draw();
    }

    public void drawSquare(){
        square.draw();
    }
}
